<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="java.util.Date"%>
<%@ include file="../common.jsp" %>
<html>
<head>
    <title>工单</title>
    <link href="${ctx}/static/agent-ui/plugins/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/easyui/themes/gray/base.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/easyui/themes/color.css?version=1"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/easyui/themes/default.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/agent-ui/css/buttons.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/player.css"/>
    <link href="${ctx}/static/agent-ui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <link href="${ctx}/static/agent-ui/plugins/autocomplete/autocomplete.css" rel="stylesheet"/>
    <link href="${ctx}/static/easyui/themes/gray/easyui.css" rel="stylesheet" type="text/css"/>
    <script>
        var ctx = "${ctx}"
    </script>
    <style>
        .layui-form-pane .layui-form-label {
            width: 150px;
            padding: 8px 15px;
            height: 38px;
            line-height: 20px;
            border-width: 1px;
            border-style: solid;
            border-radius: 2px 0 0 2px;
            text-align: center;
            background-color: #FBFBFB;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            box-sizing: border-box
        }
        .layui-form-pane .layui-input-block {
            margin-left: 180px;
            left: -1px
        }
    </style>
</head>
<body style="min-width: 1100px;overflow-x: auto">
<div id="receivedListHeader" class="datagrilBtn" style="height: auto">
    <input type="hidden" id="session_roleId" value="<shiro:principal property="roleId"/>"/>
    <form id="search_form" class="layui-form">
        <div class="layui-form-item">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input name="email" class="layui-input"  placeholder="请输入报修人邮箱">
                </div>
                <div class="layui-input-inline">
                    <input name="workOrderId" class="layui-input"  placeholder="请输入工单号">
                </div>
                <div class="layui-input-inline">
                    <select name="status" lay-verify="required">
                        <%--01:调配 02:已接单 03:服务中 04:结束服务--%>
                        <option value="">请选择工单状态</option>
                        <option value="01">待调配</option>
                        <option value="06">待接单</option>
                        <option value="02">已接单</option>
                        <option value="03">服务中</option>
                        <option value="04">服务完成待评价</option>
                        <option value="05">已评价</option>
                    </select>
                </div>
            </div>

            <div class="layui-inline">
                <div id="search_submit" class="layui-btn layui-btn-normal">查询</div>
            </div>|
            <div class="layui-inline">
                <div id="addData" class="layui-btn layui-btn-normal">新增工单</div>
            </div>|
            <div class="layui-inline">
                <input id="ringTime" name="ringTime" class="layui-input" placeholder="请选择工单时间范围"
                       style="width: 240px">
            </div>|
                <div class="layui-inline">
                    <div id="exportData" class="layui-btn layui-btn-normal">导出</div>
                </div>
        </div>
    </form>
</div>
<div class="layui-row" id="add" style="display: none;">
    <form id = "add_form" class="layui-form layui-form-pane" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">报修人邮箱</label>
            <div class="layui-input-inline">
                <input  id="email"  name="email" layui-autocomplete lay-verify="required" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">选项</label>
            <div class="layui-input-inline">
                <select name="machineType" lay-filter="machineTypeFilter">
                    <%--<option value="">请选择</option>
                    <option value="1">硬件</option>
                    <option value="2">软件</option>
                    <option value="3">会议设备及其他</option>
                    <option value="4">网络</option>
                    <option value="5">电话</option>--%>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">判定常用</label>
            <div class="layui-input-inline">
                <select name="repaireSubject">
                </select>
            </div>
        </div>
        <%--<div class="layui-form-item">
            <label class="layui-form-label">工单来源</label>
            <div class="layui-input-inline">
                <select name="source">
                    <option value="">---请选择---</option>
                        <option value="1">电话报修</option>
                        <option value="2">邮件报修</option>
                        <option value="3">微信报修</option>
                        <option value="4">二维码</option>
                        <option value="5">其他</option>
                </select>
            </div>
        </div>--%>
        <div class="layui-form-item">
            <label class="layui-form-label">报修地点</label>
            <div class="layui-input-inline">
                <select name="address" lay-filter="addressFilter">
                    <option value="">---请选择---</option>
                    <option value="01">兆丰</option>
                    <option value="02">科汇</option>
                    <option value="03">百丽</option>
                    <option value="05">杨浦</option>
                    <option value="04">其他</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">楼层</label>
            <div class="layui-input-inline">
                <select name="floor">

                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">报修问题</label>
            <div class="layui-input-inline">
                <input  id = "description" name="description"  placeholder="请输入"  class="layui-input">
            </div>
        </div>
    </form>
</div>
<div class="layui-row" id="edit" style="display: none;">
    <form id = "edit_form" class="layui-form layui-form-pane" action="">
        <input type="hidden" name="id"/>
        <div class="layui-form-item">
            <label class="layui-form-label">报修人</label>
            <div class="layui-input-inline">
                <input  id="creatorName"  name="creatorName" lay-verify="required" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">部门</label>
            <div class="layui-input-inline">
                <input  id="callerDeptName"  name="callerDeptName"  placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地点</label>
            <div class="layui-input-inline">
                <select name="address" lay-filter="addressFilter">
                    <option value="">---请选择---</option>
                    <option value="01">兆丰</option>
                    <option value="02">科汇</option>
                    <option value="03">百丽</option>
                    <option value="05">杨浦</option>
                    <option value="04">其他</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">楼层</label>
            <div class="layui-input-inline">
                <select name="floor">

                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">维修时间</label>
            <div class="layui-input-inline">
                <select name="expectTime">

                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">选项</label>
            <div class="layui-input-inline">
                <select class="weui-select" name="machineType" id="machineType" lay-filter="machineTypeFilter">
                    <%--<option value="">请选择</option>
                    <option value="1">硬件</option>
                    <option value="2">软件</option>
                    <option value="3">会议设备及其他</option>
                    <option value="4">网络</option>
                    <option value="5">电话</option>--%>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">判定常用</label>
            <div class="layui-input-inline">
                <select class="weui-select" name="repaireSubject" id="repaireSubject">
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">报修问题</label>
            <div class="layui-input-inline">
                <input   name="description"  placeholder="请输入"  class="layui-input">
            </div>
        </div>
    </form>
</div>

<%@ include file="circulation.jsp"%>
<div class="layui-row" id="process_01" style="display: none;">
    <form id = "process_form" class="layui-form layui-form-pane" action="">
        <div class="layui-form-item">
            <%--<label class="layui-form-label">请选择工程师</label>--%>
            <div class="layui-input-inline">
                <select name="currentId">
                </select>
            </div>
        </div>
    </form>
</div>
<div class="layui-row" id="huidan" style="display: none;">
    <form id = "process2_form" class="layui-form layui-form-pane" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">维修处理说明</label>
            <div class="layui-input-inline">
                <input  name="processSpecification" lay-verify="required" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">原因</label>
            <div class="layui-input-inline">
                <input  name="reason" lay-verify="" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">处理备注</label>
            <div class="layui-input-inline">
                <input  name="processRemark" lay-verify="" placeholder="请输入"  class="layui-input">
            </div>
        </div>
    </form>
</div>
<div id="list" class="easyui-datagrid" style="min-width:1100px;overflow-x: scroll"></div>

<script type="text/javascript" src="${ctx}/static/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${ctx}/static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx}/static/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/static/agent-ui/plugins/layui/layui.js"></script>
<script type="text/javascript" src="${ctx}/static/agent/callIn/repaireInfo.js"></script>
<script type="text/javascript" src="${ctx}/static/audiojs/audio.min.js"></script>
<script type="text/javascript" src="${ctx}/static/agent-ui/js/autocomplete.js"></script>
<script type="text/javascript" src="${ctx}/static/agent/floorInfo.js?v=<%=new Date().getTime() %>"/>
</body>
</html>
